package day17;

public class ThreadPractice {
    public static void main(String[] args) {
        TT t1=new TT("阿龙");
        TT t2=new TT("阿飞");
        TT t3=new TT("阿彪");
        TT t4=new TT("阿勇");
        t1.start();
        t2.start();
        t3.start();
        t4.start();
    }
}
class TT extends Thread{
    @Override
    public void run() {
        for (int i = 0; i < 15; i++) {
            System.out.println(i+","+getName()+getId());
        }
    }

    public TT() {
    }

    public TT(String name) {
        super(name);
    }
}